package org.jsystem;


import org.junit.Assert;
import org.junit.Test;
import org.jsystem.CreatePushSo;

import jsystem.framework.ParameterProperties;
import jsystem.framework.TestProperties;
import junit.framework.SystemTestCase4;
 
import org.junit.Before;
import org.junit.Test;
 
public class PushApiCreation extends SystemTestCase4 {
 
    private String ip;
    private CreatePushSo push;
 
    public PushApiCreation()
    {
    	setFixture(ExampleFixtureChild.class);
    }
    
    @Before
    public void setUp() throws Exception 
    {
    	push = (CreatePushSo) system.getSystemObject("createPushSo");
    }
 
    /**
     * Verify that Push stream was successfully created by using the Zixi broadcaster API: 2.2	Add input URL http://<broadcaster_host>:<broadcaster_port>/zixi/add_stream.json
     */
    @Test
    @TestProperties(name = "Verify that Push stream was successfully created")
    public void addPushStreamToBroadcaster()
    {
    	push.verifyIfPushCreated();
    }
 
    public String getIp() 
    {
        return ip;
    }
 
    @ParameterProperties(description = "Expected ip")
    public void setIp(String ip) {
        this.ip = ip;
    }
 
}